package com.c2.service;

import com.c2.entity.EbComment;

import java.util.List;


public interface CommentService {

     int deleteByPk(Integer id) ;


    List<EbComment> listByPage(int page, int pageSize);

    /**
     * 根据pageSize获得comment总页数
     * @return
     */
    Integer getMaxPage(Integer pageSize);
    /**
     * 根据留言编号查询新闻内容
     * @param ecId 留言编写
     * @return
     */
    EbComment selectOne(Integer ecId);



     int updateById(EbComment ebComment) ;


int save(EbComment ebComment);


    }

